import Button from "./button/button.js";
import Icon from "./icons/icon.js";
import Radio from "./radio/radio.js";
import Checkbox from "./checkbox/checkbox.js";
import CheckboxGroup from "./checkbox/checkboxGroup.js";
import Dropdown from "./dropdown/dropdown.js";
import Dialog from "./dialog/dialog.js";
import UploadImg from "./upload/img.vue";
import tabs from "./tabs/tabs.js";

const components = [
  Button,
  Icon,
  Radio,
  Checkbox,
  Dropdown,
  Dialog,
  CheckboxGroup,
  UploadImg,
  tabs
];

// eslint-disable-next-line require-jsdoc
function install (Vue) {
  components.forEach(item => {
    Vue.component(item.name, item);
  });
}

export default {
  install
};
